var url ='http://localhost:8080/top/playlist'
function http({
    offset,
    limit,
    success
}){
     wx.request({
        url,
        data: {
            offset,
            limit
        },
        header: {'content-type':'application/json'},
        method: 'GET',
        dataType: 'json',
        responseType: 'text',
        success: (res)=>{
            success(res)
        }
    });
}
module.exports = http;